package com.xr.miniprogram.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.beans.Transient;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * <p>
 * 
 * </p>
 *
 * @author da
 * @since 2023-09-12
 */
@Getter
@Setter
@TableName("mp_comment")
@ToString
public class MiniProgramComment implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 评论id
     */
    @TableId(value = "mini_program_comment_id", type = IdType.AUTO)
    private Long miniProgramCommentId;

    /**
     * 订单id
     */
    private Long orderId;

    /**
     * 用户id
     */
    private Long miniProgramUserId;

    /**
     * 评论内容
     */
    private String content;

    /**
     * 评论星级
     */
    private Long rate;

    /**
     * 图片url
     */
    private String commentImgUrl;

    /**
     * 服务id
     */
    private Long serviceId;

    /**
     * 规格id
     */
    private Long standardsId;

    /**
     * 评论日期
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 用户名
     */
    @TableField(exist = false)
    private String nickName;

    @TableField(value = "avatar_url",exist=false)
    private String avatarUrl;

    @TableField(value = "service_name",exist=false)
    private String serviceName;


}
